function FormatTime(time){
    let date = new Date(time)
    let year=date.getFullYear()
    let mm=(date.getMonth()+1).toString().padStart(2,'0')
    let d=date.getDate().toString().padStart(2,'0')
    let h=date.getHours().toString().padStart(2,'0')
    let m=date.getMinutes().toString().padStart(2,'0')
    let s=date.getSeconds().toString().padStart(2,'0')
    
    return `${year}-${mm}-${d} ${h}:${m}:${s}`
    }

export default FormatTime